package com.xiaolin.practice.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaolin.practice.pojo.WorkOrder;
import com.xiaolin.practice.pojo.WorkOrderDays;
import com.xiaolin.practice.pojo.WorkOrderMetrics;
import com.xiaolin.practice.pojo.WorkOrderTypes;

import java.util.List;
import java.util.Map;

public interface WorkOrderService extends IService<WorkOrder> {
    boolean saveWorkOrder(WorkOrder workOrder);

    boolean updateByWorkOrder(WorkOrder workOrder);

    IPage<WorkOrder> pageWorkOrder(Page<WorkOrder> p, Map<String, Object> workOrderMap);

    boolean fenpai(Long orderId, Long departmentId, String departmentName);

    List<WorkOrderDays> samplingOverdue(String dateMM);

    List<WorkOrderTypes> getWorkOrderTypes(String dateMM);

}
